/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Ram
 */
public class Circulo {
    //METODOS
    private double radio;
    private double area;
    private double perimetro;
    //CONSTRUCTORES
    public Circulo(){
        radio=1;
         area=calcularArea();
       perimetro=calcularPerimetro();
    }
     public Circulo(double r){
        radio=r;
         area=calcularArea();
       perimetro=calcularPerimetro();
    }

    //GETTERS & SETTERS
    public double getRadio() {
        return radio;
    }

    public void setRadio(double r) {
        radio = r;
    }
     //METODOS
    public double calcularPerimetro(){
    
        perimetro=3.1416*(2*radio);
        return perimetro;
}
    public double calcularArea(){
    
        area=3.1416*(radio*radio);
        return area;
    }
    
     public void imprimirInfo()
    {
        System.out.println("Informacion del Circulo ");
        System.out.println(" -------------------------- ");
        System.out.println("Radio: " + radio );
        System.out.println("Area: " + area );
        System.out.println("Perimetro: " + perimetro );
    }
}
